/*
 * surface.h
 *
 *  Created on: 09 Nis 2012
 *      Author: hframe
 */

#ifndef SURFACE_H_
#define SURFACE_H_



#include "graphics.h"
#include "../drawing/color.h"



startnamespace( androidplus)
startnamespace(ui)

class surface {
public:
	surface();
	virtual ~surface();

public:

	graphics *grph;
	drawing::color background;
protected:
    virtual void render()=0;
     void flush();
protected:
    virtual void initialize(ANativeWindow *window);
    virtual void uninitialize();
     t_int32 get_height();
     t_int32 get_width();
     void draw_background();





};

endnamespace(ui)
endnamespace(androidplus)
#endif /* SURFACE_H_ */
